package com.star.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.star.dao.UserDao;
import com.star.model.UserModel;
import com.star.service.UserService;

@Service
public class UserServiceImpl implements UserService {

	@Autowired
	private UserDao userDao;

	@Override
	public void insertUser(UserModel user) {
		userDao.insertUser(user);
	}

	@Override
	public UserModel selectUser(String userName) {
		return userDao.selectUser(userName);
	}

	@Override
	public UserModel selectUserById(Integer id) {
		return userDao.selectUserById(id);
	}

}
